include ./define.makefile

.PHONY:all

all:${PROTOCGEN_FILE_PATH}/module_TreasureMap_bin

${PROTOCGEN_FILE_PATH}/module_TreasureMap_bin:${PROTOCGEN_FILE_PATH}/TreasureMap.proto.ds ${RESDB_EXCELMMO_PATH}/TreasureMap.xlsx
	mkdir -p ${PROTOCGEN_FILE_PATH}
	rm -rf ${PROTOCGEN_FILE_PATH}/module_TreasureMap_bin
	${NFEXCELPROCESS} --work="exceltobin" --patch=${GAME_VERSION_PATCH} --excel_json=${RESDB_EXCEL_JSON} --src=${RESDB_EXCELMMO_PATH}/TreasureMap.xlsx  --proto_ds=${PROTOCGEN_FILE_PATH}/TreasureMap.proto.ds --dst=${PROTOCGEN_FILE_PATH}/;
	${FILE_COPY_EXE} --work="filecopy_notexist" --src="${PROTOCGEN_FILE_PATH}/TreasureMapDescEx.h ${PROTOCGEN_FILE_PATH}/TreasureMapDescEx.cpp" --dst=${DESC_STORE_EX_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapPosition.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapPosition_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/TreasureMapPositionDesc.h ${PROTOCGEN_FILE_PATH}/TreasureMapPositionDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapProbability.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapProbability_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/TreasureMapProbabilityDesc.h ${PROTOCGEN_FILE_PATH}/TreasureMapProbabilityDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapSilver.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapSilver_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/TreasureMapSilverDesc.h ${PROTOCGEN_FILE_PATH}/TreasureMapSilverDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapTreasure.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapTreasure_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/TreasureMapTreasureDesc.h ${PROTOCGEN_FILE_PATH}/TreasureMapTreasureDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapCopy.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TreasureMapCopy_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/TreasureMapCopyDesc.h ${PROTOCGEN_FILE_PATH}/TreasureMapCopyDesc.cpp" --dst=${DESC_STORE_PATH}/
	touch ${PROTOCGEN_FILE_PATH}/module_TreasureMap_bin
